namespace Yaaf.WP7.NativeAccess.Helper
{
    using System;
    using System.Runtime.Serialization;


    public class RegisterComException : Exception
    {
        //
        // For guidelines regarding the creation of new exception types, see
        //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
        // and
        //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
        //

        public RegisterComException()
        {
        }

        public RegisterComException(string message)
            : base(message)
        {
        }

        public RegisterComException(string message, Exception inner)
            : base(message, inner)
        {
            
        }
        
        public Exception RegisterException
        {
            get
            {
                return (Exception)this.Data["RegisterException"];
            }

            set
            {
                this.Data["RegisterException"] = value;
            }
        }

        public Exception OtherException
        {
            get
            {
                return (Exception)this.Data["OtherException"];
            }
            set
            {
                this.Data["OtherException"] = value;
            }
        }
    }
}